import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import eslintPlugin from 'vite-plugin-eslint'
import vuetify from 'vite-plugin-vuetify'
import { resolve } from 'path'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    vue(),
    eslintPlugin({
      include: ['./src/**/*.vue', './src/**/*.js'],
    }),
    vuetify({ autoImport: true }),
  ],
  resolve: {
    alias: {
      '~': resolve(__dirname, './'),
      '@': resolve(__dirname, './src'),
      '@utils': resolve(__dirname, './src/utils'),
    },
    extensions: ['.js', '.vue'],
  },
})
